package com.xxz.course;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
//import android.widget.EditText;
//import android.widget.EditText;
import android.widget.TextView;
public class ScoreActivity2 extends AppCompatActivity  {
    TextView out;
    Button but1, but2, but3,but4;
    int s = 0;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_score2);
        out = findViewById(R.id.txtout);
        but1 = findViewById(R.id.but1);
        but2 = findViewById(R.id.but2);
        but3 = findViewById(R.id.but3);
        but4 = findViewById(R.id.but3);

    }
    //@Override
    public void on1(View v) {
        Log.i("main","onClick msg....");
        s=s+3;
        out.setText(""+s);
    }
    //@Override
    public void on2(View v) {
        Log.i("main","onClick msg....");
        s=s+2;
        out.setText(""+s);

    }
    //@Override
    public void on3(View v) {
        Log.i("main","onClick msg....");
        s=s+1;
        out.setText(""+s);
    }
    //public void on4(View v) {
       // Log.i("main","onClick msg....");
     //  s=0;
     //   out.setText(""+s);
    }

